#include <Path.h>
Inheritance diagram for Path:

Public Member Functions | |
| Path () | |
| Path (string pathname, float scale) | |
| void | draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| void | deletePart () |
| osg::Vec3 | calculateCatmull (osg::Vec3 first, osg::Vec3 second, osg::Vec3 third, osg::Vec3 fourth, double fifth) |
| void | setPoints (double number=1.0) |
| osg::Node * | displayLines (void) |
| osg::Node * | displayDots (void) |
| void | addNewPoint (osg::Vec3 first, double number=1.0) |
| osg::Vec3 * | getControlPointVector () |
| osg::Vec3 * | getPointVector () |
| double * | getRotationArray () |
| void | setRotationArray () |
| double | returnAngle (osg::Vec3d first, osg::Vec3d second) |
Private Attributes | |
| osg::Vec3 | controlPointArray [MAXCONTROLPOINTS] |
| osg::Vec3 | pointArray [MAXPOINTS] |
| double | rotationArray [MAXPOINTS] |
| int | numControlPoints |
| int | numPoints |
| int | controlPointsIndex |
| int | rotationArrayIndex |
| osg::Geode * | lineGeode |
| osg::Geometry * | lineGeom |
| osg::Geode * | dotGeode |
| osg::Geometry * | dotGeom |
| osg::Group * | lineGroup |
| osg::Group * | dotGroup |
|
|
A constructor. default constructor. |
|
||||||||||||
|
A constructor.
|
|
||||||||||||
|
a normal member taking two arguments .
|
|
||||||||||||||||||||||||
|
a normal member .
|
|
|
a normal member . removes dotGroup and lineGroup from teh root. |
|
|
a normal member .
|
|
|
a normal member .
|
|
||||||||||||
|
a normal member taking two arguments.
Implements TraffEduObject. |
|
|
a normal member .
|
|
|
a normal member .
|
|
|
a normal member .
|
|
||||||||||||
|
a normal member .
|
|
|
a normal member .
|
|
|
a normal member . calls returnAngle for each successive point of the path, and constructs rotation array. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6-NO